<template>
	<view class="payFail">
		<image src="../../../static/img/fail.png" mode=""></image>
		<view class="word">支付失败</view>
		<view class="word1">请重新支付</view>
		<view class="marginTop20" >
			<button @tap="to">确定</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				ip:'',
				type:'',
			}
		},
		onLoad(option) {
			this.ip=option.ip
			this.type=option.type
		},
		methods: {
			to(){
				if(this.ip==-1){
					uni.navigateBack(-1);
				}else if(this.ip=='mine'){
				uni.switchTab({
				    url: '/pages/tabbar/mine'
				});
			}else{
				this.getnav(this.router(`${this.ip}?type=${this.type}`));
					
				}
			}
		}
	}
</script>

<style lang="less">
	.payFail{
		text-align: center;
		image{
			width: 112rpx;
			height: 112rpx;
			border-radius: 50%;
			margin-top: 120rpx;
		}
		.word{
			text-align: center;
			font-weight: bold;
			font-size: 32rpx;
			padding-top: 30rpx;
		}
		.word1{
			color: #BEC9D7;
			font-size: 24rpx;
			padding-top: 20rpx;
		}
		button{
			width:160rpx;
			height:66rpx;
			line-height: 66rpx;
			background:rgba(34,145,255,1) !important;
			color: #fff;
			font-size: 32rpx;
			border-radius:33rpx;
			margin: 0 auto;
		}
	}
</style>
